<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://www.neusoft.com/taglib/cutpage" prefix="page"%>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/back.css" />
<center>
<table width="900px" border="1" cellspacing="0" bordercolordark="#FFFFFF" bordercolorlight="#0066cc">
	<tr bgcolor="#AEC8E4" height="40px">
		<th>订单号</th>
		<th>用户名</th>
		<th>联系电话</th>
		<th>下单时间</th>
		<th>接收人姓名</th>
		<th>接收人电话</th>
		<th>订单状态</th>
		<th>操作</th>
	</tr>
	<tbody>
		<c:forEach items="${orderlist}" var="order">
			<tr height="30px" align="center">
				<td>${order.orderId}</td>
				<td>${order.userName}</td>
				<td>${order.phone}</td>
				<td>${order.date}</td>
				<td>${order.toUser}</td>
				<td>${order.toPhone}</td>
				<td>
					<c:choose>
						<c:when test="${order.state==1}"><span style="color: red;">未审核</span></c:when>
					</c:choose>
					<c:choose>
						<c:when test="${order.state==2}"><span>通过审核</span></c:when>
					</c:choose>
					<c:choose>
						<c:when test="${order.state==0}"><span style="color: #0066cc;">未通过审核</span></c:when>
					</c:choose>
				</td>
				<td>
					<a href="${pageContext.request.contextPath}/OrderServlet?service=examin&orderId=${order.orderId}">审核操作</a>
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<div align="center" style="margin-top: 40px;font-size: 10pt">
	<page:pageDisplay pagenum="${pagenum}" url="${pageContext.request.contextPath}/OrderServlet?service=manage" condName="pagenum" maxindex="${ordercount}"/>
	<div align="right" style="font-size: 10pt">
		<span>总共记录数：${ordercount}</span>
	</div>
</div>
</center>
